package city.spring.modules.medicalstation.medical.repository;

import city.spring.modules.medicalstation.medical.entity.MedicalRecordEntity;
import city.spring.modules.medicalstation.medical.vo.MedicalRecordEntityVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：
 *
 * @author
 * @date 2020-06-17 14:23:13
 */
@Repository
public interface MedicalRecordRepository extends BaseMapper<MedicalRecordEntity> {
    /**
     * 分页获取就医记录
     *
     * @param page    分页对象
     * @param wrapper 查询对象
     * @return 就医记录
     */
    IPage<MedicalRecordEntityVO> listPage(Page<? extends MedicalRecordEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends MedicalRecordEntity> wrapper);
}